/*
package com.burgeon.backend.Util;

import com.burgeon.backend.EnterpriseWeChat.service.EWInfoService;
import com.burgeon.backend.SHOP.service.BirthdayCouponService;
import com.burgeon.backend.SHOP.service.Impl.PlusActiveServiceImpl;
import com.burgeon.backend.SHOP.service.PlusActiveService;
import com.burgeon.backend.SHOPBACKEND.service.ex.ErrorDataException;
import com.burgeon.backend.service.RunnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.text.ParseException;

@Component
public class TaskUtils {

    public static final String token = "lfwd";

    @Autowired
    private PlusActiveService plusActiveService;
    @Autowired
    private BirthdayCouponService birthdayCouponService;
    @Autowired
    private RunnerService runnerService;
    @Autowired
    private EWInfoService ewInfoService;


    */
/**
     * @author: 伯俊软件
     * @description: 自提通知
     * @date: 2021/6/21 16:16
     * @param
     * @return void
     *//*

    @Scheduled(cron = "0 0 10 * * ?")//每天上午十点判断，发送通知
    @Async
    public void SendExtractMessageTemplate(){

        runnerService.SendExtractMessageTemplate(token);

    }


    */
/**
     * @author: 伯俊软件
     * @description: 为plus会员发送优惠券
     * @date: 2021/8/2 10:23
     * @param
     * @return void
     *//*

    @Scheduled(cron = "0 0 10 1 * ?")//每月1号上午10点执行，为plus会员发送优惠券
    @Async
    public void findSendRecord() throws ErrorDataException {
        plusActiveService.findSendRecord(token);
        System.err.println("执行任务啦"+token);
    }


    */
/**
     * @author: 伯俊软件
     * @description: plus会员到期通知
     * @date: 2021/8/2 10:23
     * @param
     * @return void
     *//*

    @Scheduled(cron = "0 0 10 * * ?")//每天上午10判断会员是否到期，发送通知，根据配置的到期日期
    @Async
    public void plusDuoNotice() throws ParseException {
        plusActiveService.sendDueNotice(token);
        System.err.println("token=="+token);

    }

    */
/**
     * @author: 伯俊软件
     * @description: 生日通知
     * @date: 2021/8/6 11:20
     * @param
     * @return void
     *//*

    @Scheduled(cron = "0 0 10 * * ?")//每天上午10点判断生日，发送通知，生日前7日
    @Async
    public void BirthdayDuoNotice() throws ParseException {
        birthdayCouponService.sendBirthdayNotice(token);
    }

    */
/**
     * @author: 伯俊软件
     * @description: 24小时未学习课程通知
     * @date: 2021/8/19 13:13
     * @param
     * @return void
     *//*

    @Scheduled(cron = "0 0 8 * * ?")//每天上午8点未学习课程的导购，发送通知
    @Async
    public void notCourseNotice() throws Exception {
        ewInfoService.sendNotCourseNotice(token);
    }

    */
/**
     * @author: 伯俊软件
     * @description: 24小时未考试通知
     * @date: 2021/8/19 13:13
     * @param
     * @return void
     *//*

    @Scheduled(cron = "0 0 8 * * ?")//每天上午8点未学习课程的导购，发送通知
    @Async
    public void notExamNotice() throws Exception {
        ewInfoService.sendNotExamNotice(token);
    }

}
*/
